lib: Use sd_journal directly (optionally)
authorColin Walters <walters@verbum.org>
Tue, 14 Jun 2016 17:12:21 +0000 (13:12 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 21 Jun 2016 18:24:17 +0000 (18:24 +0000)
commit9e2763106be01044caa541314d3fe185cc73361d
tree66b07e037eb38f0880e5205814726d3d95c880fc
parent4819b44189cbdde189a2693e081be39483838e78
lib: Use sd_journal directly (optionally)

This was the last caller of libgsystem that isn't
`gs_file_get_path_cached()`.  I think the use case ostree has where
the same code can be called via command line and via a shared library
*and* via a daemon is rather unusual, so let's just copy the code for
logging from libgsystem into here.

For example rpm-ostree hard depends on a daemon mode, so it'll just
use `sd_journal` directly.

Closes: #341
Approved by: jlebon
Makefile-libostree.am
Makefile-ostree.am
Makefile-otutil.am
configure.ac
src/libostree/ostree-sysroot-deploy.c
src/libotutil/ot-log-utils.c [new file with mode: 0644]
src/libotutil/ot-log-utils.h [new file with mode: 0644]
src/libotutil/otutil.h